/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package busy.http;

import java.io.IOException;
import java.net.MalformedURLException;
import java.net.URL;
import java.net.URLConnection;
import java.security.cert.Certificate;
import javax.net.ssl.HttpsURLConnection;
import javax.net.ssl.SSLPeerUnverifiedException;

/**
 *
 * @author martin
 */
public class HttpsUrl extends HttpsURLConnection{
  //private final URLConnection _urlcon;
  public HttpsUrl(final URL url){
    super(url);
  }
  
  public static HttpsURLConnection factory(final String url) throws MalformedURLException{
    URL u = new URL(url);
    return new HttpsUrl(u);
  }
  
  @Override
  public String getCipherSuite() {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
  }

  @Override
  public Certificate[] getLocalCertificates() {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
  }

  @Override
  public Certificate[] getServerCertificates() throws SSLPeerUnverifiedException {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
  }

  @Override
  public void disconnect() {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
  }

  @Override
  public boolean usingProxy() {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
  }

  @Override
  public void connect() throws IOException {
    throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
  }
  
}
